package ZDloader;
import java.io.File;
import java.util.Iterator;
import java.util.Set;
import java.util.TreeSet;
import javax.swing.JFrame;
/**
 * @author ZakDhm
 */
public class Zdloader { 
	
public static void main(String[] arg) throws Exception {
            Gui gui = new Gui();
            gui.setVisible(true);
            gui.setLocationRelativeTo(null);
            //Load the database connetion and get the data for the requested Game
            DbConnect con = new DbConnect(arg[0]);
            //Load the image with the path returned from DbConnect(arg[0])
            //the value is inside con.getGameTitle
            gui.loadImage(con.getGameTitle());
            //dns:call a roboCopy class
            Robocopy DoCopy = new Robocopy();
            //dns: set the arguments returned from DbConnect
            DoCopy.main(con.getSourceTitle(), con.getDestTitle());
}
}